/**
 * @file    :cpp20220403.cpp
 * @brief   :
 * @author  :renqiang
 * @version :V1.0.0
 * @date    :2022-04-03
 */
#include <iostream>
using namespace std;
// c++的类
class Clock
{
public:
  // void setTime(int newH = 0, int newM = 0, int newS = 0);
  void setTime(string newH, string newM, string newS);
  void showTime();

private:
  string hour;
  string minute;
  string second;
};

// void Clock::setTime(string newH = "0", string newM = "0", string newS = "0")
void Clock::setTime(string newH, string newM, string newS)
{
  hour = newH;
  minute = newM;
  second = newS;
}

void Clock::showTime()
{
  cout << hour << ":" << minute <<":" << second << endl;
}

int main()
{
  Clock Clockrq;
  Clockrq.setTime("18", "03", "01");
  Clockrq.showTime();
  return 0;
}

// 18:3:1
//Clock();